package com.xx.common.constant;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * TODO
 * 桥梁健康度信息同步表
 * @Author kzw
 * @Date 2025/4/2 15:03
 */
@Data
@TableName("bridge_health_info")
public class BridgeHealthInfo {
    @TableId(type = IdType.INPUT)
    private String bridgeUniqueCode; // 桥梁唯一编码（主键）
    private Integer entireHealthLevel; // 整体健康度
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
/*    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime*/; // 更新时间

    public String getBridgeUniqueCode() {
        return bridgeUniqueCode;
    }

    public void setBridgeUniqueCode(String bridgeUniqueCode) {
        this.bridgeUniqueCode = bridgeUniqueCode;
    }

    public Integer getEntireHealthLevel() {
        return entireHealthLevel;
    }

    public void setEntireHealthLevel(Integer entireHealthLevel) {
        this.entireHealthLevel = entireHealthLevel;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
